package com.blandware.atleap.webapp.form.core;

import javax.servlet.http.HttpServletRequest;
import com.blandware.atleap.webapp.form.BaseForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import java.util.Map;
import java.util.HashMap;

/**
 * @struts.form name="layoutForm" 
 */
public  class LayoutForm
    extends    BaseForm
    implements java.io.Serializable
{

    protected String definition;

    protected String cpDefinition;

    protected String name;

    protected Boolean virtual;

    protected String id;

    protected String version;

    /** Default empty constructor. */
    public LayoutForm() {}

    public String getDefinition()
    {
        return this.definition;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator-args arg0resource="core.layout.form.definition"
    */
    public void setDefinition(String definition)
    {
        this.definition = definition;
    }

    public String getCpDefinition()
    {
        return this.cpDefinition;
    }

   /**
    */
    public void setCpDefinition(String cpDefinition)
    {
        this.cpDefinition = cpDefinition;
    }

    public String getName()
    {
        return this.name;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator type="mask" msgkey="core.commons.errors.layoutName"
    * @struts.validator-args arg0resource="core.layout.form.name"
    * @struts.validator-var name="mask" value="^[^&lt;&gt;&amp;\042]+$"
    */
    public void setName(String name)
    {
        this.name = name;
    }

    public Boolean getVirtual()
    {
        return this.virtual;
    }

   /**
    */
    public void setVirtual(Boolean virtual)
    {
        this.virtual = virtual;
    }

    public String getId()
    {
        return this.id;
    }

   /**
    */
    public void setId(String id)
    {
        this.id = id;
    }

    public String getVersion()
    {
        return this.version;
    }

   /**
    */
    public void setVersion(String version)
    {
        this.version = version;
    }

    /**
     * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping,
     *                                                javax.servlet.http.HttpServletRequest)
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        // reset any boolean data types to false

        this.virtual = Boolean.FALSE;

        // reset all linking properties to null

// reset all mapped properties to default values

    }

protected String virtualDefinitionName = null;
protected String virtualCpDefinitionName = null;

public String getVirtualDefinitionName() {
	return this.virtualDefinitionName;
}

public void setVirtualDefinitionName(String s) {
	this.virtualDefinitionName = s;
}

public String getVirtualCpDefinitionName() {
	return this.virtualCpDefinitionName;
}

public void setVirtualCpDefinitionName(String s) {
	this.virtualCpDefinitionName = s;
}

}
